const baseUrl = 'http://116.62.160.18:8092'
// const baseUrl = 'http://192.168.0.119:8085' // 本地
const api = {
  // 登入
  login: baseUrl + '/device-operation-consumer/login', // 本地登入数据
  // 城市列表
  cityList: baseUrl + '/device-operation-consumer/project/findAll',
  // 项目列表
  projectList: baseUrl + '/device-operation-consumer/project/findById',
  // 项目详情
  projectDetail: {
    result: baseUrl + '/device-operation-consumer/task/findAll',
    delete: baseUrl + '/device-operation-consumer/task/delete',
    saveOrUpdate: baseUrl + '/device-operation-consumer/task/saveOrUpdate'
  },
  // 新建项目
  buildProject: {
    getCity: baseUrl + '/device-operation-consumer/cityInfo/queryAll',
    getCompany: baseUrl + '/device-operation-consumer/cityInfo/queryByCondition',
    add: baseUrl + '/device-operation-consumer/project/saveOrUpdate',
    getMember: baseUrl + '/device-operation-consumer/member/findAll',
    getFactory: baseUrl + '/device-operation-consumer/factory/queryByCondition'
  },
  // 新建任务
  buildTask: {
    getProject: baseUrl + '/device-operation-consumer/project/findById',
    add: baseUrl + '/device-operation-consumer/task/saveOrUpdate'
  },
  // 角色管理
  role: {
    result: baseUrl + '/device-operation-consumer/role/findByConditions',
    add: baseUrl + '/device-operation-consumer/role/add',
    update: baseUrl + '/device-operation-consumer/role/modify',
    getRole: baseUrl + '/device-operation-consumer/module/findByConditions',
    updateRole: baseUrl + '/device-operation-consumer/module/updateRole',
    delete: baseUrl + '/device-operation-consumer/role/deleteRole'
  },
  account: {
    result: baseUrl + '/device-operation-consumer/findAccountFy',
    add: baseUrl + '/device-operation-consumer/addAccount',
    update: baseUrl + '/device-operation-consumer/updateAccount',
    delete: baseUrl + '/device-operation-consumer/deleteAccount'
  },
  pic: {
    result: baseUrl + '/device-operation-consumer/machinepurchase/findAtt',
    export: baseUrl + '/device-operation-consumer/machinepurchase/getExcel'
  }
}
export default api
